On Sat, 2012-01-14 at 18:59 +0100, Reindl Harald wrote: > > Am 14.01.2012 18:26, schrieb Rahul Sundaram: > > > > > > On Sat, Jan 14, 2012 at 6:03 AM, Reindl Harald <[email protected]> > > > > Am 14.01.2012 01:17, schrieb Sérgio Basto: > > > On Sat, 2012-01-14 at 00:32 +0100, Reindl Harald wrote: > > >> > > >> what exactly is the problem to convert a existing > > >> sysv-init script to a systemd-unit > > > > > > I don't know convert ? , took hours ? > > > > what about looking at existing ones? > > no,, it takes some minutes for 90% of all services > > > > If you believe so, file patches > > well, attached are the one i am using with F15 > most of them written by myself or derived > from F16/F17 packages > > CAUTION: they are from mixed sources > * rpmbuild/SOURCES > * /etc/systemd > * /lib/systemd > > the whole asterisk/iaxmodem/hylafax-services were > written in 15 minutes
btw how we add service on spec file ? don't find it on wiki
I got :
# Install udev rules
install -p -m 0644 -D %{SOURCE3} $RPM_BUILD_ROOT
%{_sysconfdir}/udev/rules.d/90-vboxdrv.rules
install -p -m 0644 -D %{SOURCE5} $RPM_BUILD_ROOT
%{_sysconfdir}/udev/rules.d/60-vboxguest.rules
and after on %post we do:
# Assign USB devices
if /sbin/udevadm control --reload-rules >/dev/null 2>&1
then
systemctl restart udev-trigger.service
systemctl restart udev-settle.service
fi
1 - is this correct how reload-rules ?
2 - is correct use "systemctl restart" ?
I also send my sysv-init script, vboxweb-service if you help me to
convert it , I will be grateful.
Thanks,
--
Sérgio M. B.
vboxweb-service
Description: application/shellscript
-- devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/devel
