Wondering if the newest version includes an init script for PGAgent yet. If not I have one I wrote that I can submit.
I wrote an init script for PGAgent. It may need some tweaking but it gets the job done in our production environment.
#!/bin/bash
#
# /etc/init.d/pgagent
#
test -f /lib/lsb/
. /lib/lsb/
PIDFILE=
prog=PGAgent
PGAGENTDIR=/usr/bin
PGAGENTOPTIONS=
start() {
log_begin_msg "Starting PGAgent"
start-
log_end_msg 0
}
stop() {
log_begin_msg "Stopping PGAgent"
start-
log_end_msg 0
}
#
# See how we were called.
#
case "$1" in
start)
start
;;
stop)
stop
;;
reload|restart)
stop
start
RETVAL=$?
;;
status)
status /usr/bin/pgagent
RETVAL=$?
;;
*)
log_success_msg "Usage: $0 {start|
exit 1
esac
exit 0
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu pgagent Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: