All pastes #33450 Raw Edit

Anonymous

public text v1 · immutable
#33450 ·published 2005-12-12 23:30 UTC
rendered paste body
service daemon/hald {
    need = system/initial system/mountfs daemon/dbus;
    pid_file = /var/run/hal;

    #env_file = /etc/default/hal;
    script daemon = {
        DAEMON=/usr/sbin/hald
        PIDDIR=/var/run/hal
        NAME=hal
        DAEMONUSER=hal

        if [ -e  /etc/default/hal ]; then
           .  /etc/default/hal
        fi


        if [ ! -d $PIDDIR ]; then
          mkdir -p $PIDDIR
          chown $DAEMONUSER:$DAEMONUSER $PIDDIR
        fi

        $DAEMON $DAEMON_OPTS
        };
}