Krisbee wrote: > You need to write a custom systemd unit file, or perhaps use the systemd > equiv of a command in rc.local. See here: > > https://raymii.org/s/tutorials/rc.local_support_on_Arch_Linux_and_systemd.html > > Create an /etc/rc.local file as per a non systemd system to start > squeeze2upnp, and then enable and start the rc-local.service in systemd.
Thanks for the pointers. I now have it working. 1. Place binary in /usr/bin 2. Create sq2upnp.service file and place in /usr/lib/systemd/system 3. Start service with systemctl enable sq2upnp.service 4. Reboot Here is sq2upnp.service file: [Unit] Description=Squeeze2upnp After=multi-user.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/bin/squeeze2upnp-armv6hf-static ExecStop=/usr/bin/squeeze2upnp-armv6hf-static [Install] WantedBy=multi-user.target I now need to tone down the file permissions to finalise it all. Thanks again for your help. ------------------------------------------------------------------------ ian_heys's Profile: http://forums.slimdevices.com/member.php?userid=2629 View this thread: http://forums.slimdevices.com/showthread.php?t=101624 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
