Starting a service or application at startup
Even though urbackup instructions say to put the following line into your /etc/rc.local file:
- Add /usr/bin/urbackupsrv run –daemon to your /etc/rc.local to start the UrBackup server on server start-up.
it seems Arch uses systemd, so the thing to do is put your command in
/etc/systemd/system
You may find it already exists:
sudo systemctl list-unit-files --type-service
Here's the reference if you need to create one:
https://unix.stackexchange.com/questions/471824/what-is-the-correct-substitute-for-rc-local-in-systemd-instead-of-re-creating-rc
https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/
Comments
Post a Comment