Re: MythTV F17 request systemd scripts
Paulo Cavalcanti <[email protected]>
| Newsgroups | gmane.linux.redhat.rpm.atrpms.general |
|---|---|
| Message-ID | <CAMgUmn=WVHZz3GPCMSykTc+PP=bpPZk+8xhwNGWj5D8eLWSpxA@mail.gmail.com> |
> %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
[email protected]
http://lists.atrpms.net/mailman/listinfo/atrpms-users