> %pre backend
> # Add the "mythtv" user
> /usr/sbin/useradd -c "mythtvbackend User" \
>   -s /sbin/nologin -r -d %{_varlibdir}/mythtv mythtv 2> /dev/null || :
>
> %post backend
> /sbin/chkconfig --add mythbackend
>
> %preun backend
> if [ $1 = 0 ]; then
>   /sbin/service mythbackend stop > /dev/null 2>&1
>   /sbin/chkconfig --del mythbackend
> fi
>
> I've looked over the file that Paul referenced and it is very close to
> the one I developed to use with my own systems (it uses slightly
> different locations for some of the user files).  I'll let you know
> how I get on.
>
>
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd

-- 
Paulo Roma Cavalcanti
LCG - UFRJ
_______________________________________________
atrpms-users mailing list
atrpms-users@atrpms.net
http://lists.atrpms.net/mailman/listinfo/atrpms-users

Reply via email to