[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: init system policy



2014-11-20 16:12 GMT+01:00 Jonas Smedegaard <dr@jones.dk>:
> Quoting Vincent Danjean (2014-11-20 14:25:59)
>>   Hi,
>>
>> On 18/11/2014 18:36, Ansgar Burchardt wrote:
>> > With systemd you can ship a default configuration in
>> > /lib/systemd/system and administrators can override specific options,
>> > for example:
>> >
>> > +---
>> > | [Unit]
>> > | Description=Some Helpful Description
>> > | Documentation=man:minidlda(1)
>> > |
>> > | [Service]
>> > | User=minidlda
>> > | ExecStart=/usr/sbin/minidldad -S
>> > +---[ /lib/systemd/system/minidlda.service ]
>> >
>> > Then an admin can override the entire file by writing his own
>> > /etc/systemd/system/minidlda.service or only override specific settings:
>> >
>> > +---
>> > | [Service]
>> > | User=some-other-user
>> > +---[ /etc/systemd/system/miniblda.service.d/user.conf ]
>>
>>   I did not know that. It is very interesting.
>>
>> But, is there a way to be notified at upgrade time that the system
>> service file has been modified when there is local (partial or full)
>> changes ?
>
> I was wondering the same.
At least for the systemd-case, you can easily notice changes using the
systemd-delta command:
 $> systemd-delta --diff
This will list all overrides and the differences in case something has changed.
Cheers,
    Matthias

-- 
Debian Developer | Freedesktop-Developer
I welcome VSRE emails. See http://vsre.info/


Reply to: