Hello,
I have the following in my rc.local file to startup ShairPort on bootup:
$this->bbcode_second_pass_code('', '
shairport -a PogoPlay -b 256 -d
')
I need to replace this with a systemd .service file and need a little help.
I created the following shairport.service file under /etc/systemd/system:
$this->bbcode_second_pass_code('', '
[root@pogoplay4 system]# pwd
/etc/systemd/system
[root@pogoplay4 system]# cat shairport.service
[Unit]
Description=Startup ShairPort (Apple AirPlay)
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/shairport -a PogoPlay -b 256 -d
ExecStop=/usr/bin/killall shairport
[Install]
WantedBy=multi-user.target
[root@pogoplay4 system]#
')
Does that look right? It doesn't look like its starting properly.
$this->bbcode_second_pass_code('', '
[root@pogoplay4 system]# /usr/local/bin/shairport -a PogoPlay -b 256 -d
[root@pogoplay4 system]# killall shairport
[root@pogoplay4 system]# systemctl start shairport.service
[root@pogoplay4 system]# killall shairport
shairport: no process found
[root@pogoplay4 system]#
')
