BackupPC-users

Re: [BackupPC-users] systemd init for version 4?

2017-03-18 09:47:48
Subject: Re: [BackupPC-users] systemd init for version 4?
From: Richard Shaw <hobbes1069 AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Sat, 18 Mar 2017 08:47:01 -0500
On Tue, Mar 14, 2017 at 7:07 PM, Craig Barratt <cbarratt AT users.sourceforge DOT net> wrote:
Richard,

Both INT and TERM are handled the same way, so they should be equivalent.

Ok, back from a work trip so I can look at this again... 

I should have mentioned I'm experimenting with my CentOS 7 w/ BackupPC 3.X box but I'm not sure if it matters in this case.

In the systemd service file on github you have ExecStop set to send a SIGHUP but that's used to reload config.pl and hosts, correct?

It seems no matter what signal I use I never get a clean exit 0 but a 1 which systemd interprets as a failure...

Also, with Systemd there's no requirement to fork so unless BackupPC needs to fork for some reason then we could drop the '-d' and just use Type=simple.

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-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
<Prev in Thread] Current Thread [Next in Thread>