Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

How to launch Airsonos on boot Linux (Ubuntu)? #197

Closed
MrSimmo opened this issue Aug 6, 2015 · 1 comment
Closed

How to launch Airsonos on boot Linux (Ubuntu)? #197

MrSimmo opened this issue Aug 6, 2015 · 1 comment

Comments

@MrSimmo
Copy link

MrSimmo commented Aug 6, 2015

Hi,

Can anyone help me? - I'd like to have airsonos start on every boot of my Linux server (Ubuntu 15.04) but not clear on how to do it. Preferably after the network services are init'd.

Airsonos runs fine when I launch it from the command line btw.

Does anyone know how to accomplish this?

Many Thanks

Andy

@MrSimmo
Copy link
Author

MrSimmo commented Aug 6, 2015

Found the answer - have posted it here so others are helped where possible.

Ubuntu 15.04 uses SystemD to launch services at boot.

I created a new file /etc/systemd/system/airsonos.service with the following content:

[Unit]
Description=Start airsonos server

[Service]
Type=simple
ExecStart=/usr/local/bin/airsonos

[Install]
WantedBy=multi-user.target

Then ran:
(Assume that airsonos is not already running, if it is kill it off)
systemctl enable airsonos.service
systemctl start airsonos.service

Then I checked it was running ok by using:
systemctl status airsonos.service

Cheers, Andy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants