Bug 33431 - functions-compat: daemon() needs to handle --pidfile
Summary: functions-compat: daemon() needs to handle --pidfile
Status: CLOSED DUPLICATE of bug 31952
Alias: None
Product: Sisyphus
Classification: Development
Component: service (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 31952
Blocks:
  Show dependency tree
 
Reported: 2017-04-28 20:37 MSK by Ivan Zakharyaschev
Modified: 2017-05-15 14:52 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***