:: Re: [Dng] Which package generates /…
Top Page
Delete this message
Reply to this message
Author: Didier Kryn
Date:  
To: dng
Subject: Re: [Dng] Which package generates /lib/systemd and /etc/systemd files?


Le 05/05/2015 12:57, Anto a écrit :
> Hello Everybody,
>
> I pinned *systemd* packages into Pin-Priority: -1, and re-compiled
> cron package without anything related to systemd. But there is still
> /lib/systemd/system/cron.service file as we can see below.
>
> anto@d945gclf:~/packages/cron-3.0pl1-devuan$ grep -R systemd *
> debian/changelog: * Remove any systemd related components
> debian/changelog: * Change systemd definition in order for the daemon
> to read an honor
> debian/changelog: * Add systemd service file. Thanks to Michael
> Stapelberg (Closes: #652440)
> anto@d945gclf:~/packages/cron-3.0pl1-devuan$
> anto@d945gclf:~/packages/cron-3.0pl1-devuan$ ls -ltr /lib/systemd/system
> total 40
> -rw-r--r-- 1 root root 344 Mar 23 00:08 ssh.service
> -rw-r--r-- 1 root root 715 Apr 16 17:52 systemd-udev-trigger.service
> -rw-r--r-- 1 root root 823 Apr 16 17:52 systemd-udev-settle.service
> -rw-r--r-- 1 root root 826 Apr 16 17:52 systemd-udevd.service
> -rw-r--r-- 1 root root 575 Apr 16 17:52 systemd-udevd-kernel.socket
> -rw-r--r-- 1 root root 578 Apr 16 17:52 systemd-udevd-control.socket
> -rw-r--r-- 1 root root 217 Apr 16 17:52 udev-finish.service
> lrwxrwxrwx 1 root root 21 Apr 16 17:53 udev.service ->
> systemd-udevd.service
> -rw-r--r-- 1 root root 234 May 4 22:00 cron.service
> drwxr-xr-x 2 root root 4096 May 5 08:46 sysinit.target.wants
> drwxr-xr-x 2 root root 4096 May 5 08:46 sockets.target.wants
> anto@d945gclf:~/packages/cron-3.0pl1-devuan$
>
> Which package actually generates all of the files and directories
> under /lib/systemd and /etc/systemd if not the packages themselves,
> like cron on the example above?
>
> Thanks in advance.
>
> Anto

     I bet every service daemon package would now provide a .service 
file, just like everyone used to provide an init script. As far as I 
understand, the .service files are the systemd counterpart of sysvinit 
scripts. I imagine it is just enough to remove the file from the 
package; it would be usefull only to systemd.


     Didier