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

On Sat, Mar 18, 2017 at 6:47 AM, Richard Shaw <hobbes1...@gmail.com> wrote:

> On Tue, Mar 14, 2017 at 7:07 PM, Craig Barratt <
> cbarr...@users.sourceforge.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@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
>
------------------------------------------------------------------------------
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@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
  • [BackupPC-... Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]
    • Re: [... Richard Shaw
    • Re: [... Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]
      • R... Craig Barratt
        • ... Craig Barratt
          • ... Richard Shaw
            • ... Craig Barratt
              • ... Richard Shaw
                • ... Craig Barratt
                • ... Richard Shaw
                • ... Craig Barratt
    • Re: [... Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]
    • Re: [... Moorcroft, Mark (ARC-TS)[Analytical Mechanics Associates, INC.]

Reply via email to