[systemd-devel] RFC: creating a set of systemd RPM macros across distributions ?
Bill Nottingham
notting at redhat.com
Tue Jul 5 12:06:45 PDT 2011
Frederic Crozat (fcrozat at suse.com) said:
> %service_migrate_to_systemd(l)
> {-l:LEVEL="-l $1 ; shift }
> for service in %{?*} ; do \
> if /sbin/chkconfig $LEVEL $service ; then
> /bin/systemctl --no-reload enable `echo $service | sed -e
> 's/\.service//g'` >/dev/null 2>&1 || :
> fi
If you've got a version of chkconfig that forwards to systemd,
the level argument isn't optional here ; it's required so that it
actually checks the sysv service.
Bill
More information about the systemd-devel
mailing list