> 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 udev rules ?
2 - is correct use "systemctl restart" to restart services ?
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.