Discussion:
[BackupPC-devel] SystemD service type?
Richard Shaw
2017-03-18 12:36:38 UTC
Permalink
Since Systemd does not require a service to fork, would it be cleaner to
just call BackupPC without the "-d" option and use "Type=simple"?

Then we wouldn't even need a pid file...

Thanks,
Richard
Craig Barratt
2017-03-18 15:46:28 UTC
Permalink
Copying reply to users list:

I just pushed to git (https://github.com/backuppc/backuppc/commit/
51e579bae854ec78573cff9c3ff36ee589286502) these changes:

- BackupPC exits with status 0 on TERM signal
- systemd file now uses Type=simple, dropped the -d, and TERM signal to
terminate

Craig
Post by Richard Shaw
Since Systemd does not require a service to fork, would it be cleaner to
just call BackupPC without the "-d" option and use "Type=simple"?
Then we wouldn't even need a pid file...
Thanks,
Richard
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BackupPC-devel mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Loading...