Bug 33431

Summary: functions-compat: daemon() needs to handle --pidfile
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: serviceAssignee: placeholder <placeholder>
Status: CLOSED DUPLICATE QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: glebfm, ldv, legion, nbr, placeholder
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on: 31952    
Bug Blocks:    

Description Ivan Zakharyaschev 2017-04-28 20:37:52 MSK
service-0.5.26-alt1.x86_64

There some init-scripts for RHEL7.2 which invoke daemon() from /etc/init.d/functions-compat with --pidfile like this:

start() {
    [ $UID -eq 0 ] || exit 4
    [ -x $exec ] || exit 5

    echo -n $"Starting $prog: "
    daemon --pidfile $pidfile $exec $OPTIONS
    RETVAL=$?
    [ $RETVAL -eq 0 ] && touch $lockfile
    echo
}

Currently, ALT's package doesn't support this.
Comment 1 Ivan Zakharyaschev 2017-05-15 14:52:45 MSK
The same issue is described at https://bugzilla.altlinux.org/show_bug.cgi?id=31952 .

*** This bug has been marked as a duplicate of bug 31952 ***