When does "start on path-mounted" work?
Asked by
ErikShreve
I've written a script (see below), trying to use a "start on path-mounted" stanza. However, it doesn't seem to run when mountall-net.conf mounts the path (I'm running Ubuntu 10.04) or when I mount the path from the command line. What am I doing wrong?
# backuppc - Start the backuppc daemon
#
description "BackupPC Deamon"
author "Erik Shreve"
start on path-mounted /media/backuppc
stop on runlevel [!2345]
expect fork
#console output
pre-start script
if [ ! -d /var/run/backuppc ]; then
mkdir /var/run/backuppc
chown backuppc:backuppc /var/run/backuppc
fi
end script
script
exec su backuppc -c "exec /usr/share/
end script
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- upstart Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- ErikShreve
- Solved:
- Last query:
- Last reply:
To post a message you must log in.