[arch-dev-public] systemd units for ppp and watchdog
Thomas Bächler
thomas at archlinux.org
Thu Aug 30 03:24:30 EDT 2012
Am 30.08.2012 02:50, schrieb Jan Steffens:
> On Thu, Aug 30, 2012 at 2:06 AM, Thomas Bächler <thomas at archlinux.org> wrote:
>> While creating systemd units for my packages, I found two problems:
>>
>> 1) I cannot force pppd fork to the background. While it is the default
>> behaviour, the user can override that with the 'nodetach' and 'updetach'
>> configuration options.
>
> Here's my instanced ppp at .service, if you're interested:
>
> [Unit]
> Description=PPP link to %I
> After=network.target
>
> [Service]
> Type=forking
> PIDFile=/run/ppp-%i.pid
> ExecStart=/usr/sbin/pppd call %I linkname %i nodetach
>
> [Install]
> WantedBy=multi-user.target
>
> I believe the "nodetach" on the command line will override what
> happens in the config file.
> The "linkname" option controls the pidfile name.
You use Type=forking with a process that doesn't fork - that's what
'nodetach' means: do NOT fork into the background. That doesn't seem right.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20120830/1894f659/attachment.asc>
More information about the arch-dev-public
mailing list