[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: starting a service if a subpackage is installed



Patrice Dumas (pertusus free fr) said: 
> I'd like to have a way to start fcron automatically, but only if a
> subpackage is installed. I have (locally) implemented the following:
> 
> The initscripts are started automatically, but they do:
> 
>  [ -e /etc/sysconfig/fcron ] && . /etc/sysconfig/fcron
>  case "$1" in
>   start)
>         if [ "z$FCROND_STARTUP" = 'z' ]; then
>            exit 6
>         fi
> 
> So if $FCROND_STARTUP is not set they won't start. Then I have package
> that only contains /etc/sysconfig/fcron, called fcron-startup, with, in
> /etc/sysconfig/fcron:
> 
> FCROND_STARTUP=1

Just rely on admin configuration, like is done for every other
service.

Bill


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]