Last active
January 1, 2016 18:29
-
-
Save mnrasul/8184587 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu upstart file at /etc/init/backup-agent.conf | |
description "MongoDB Backup Service (MMS) Agent" | |
pre-start script | |
mkdir -p /var/log/mms-backup/ | |
end script | |
post-stop script | |
echo "$(date +'%Y-%m-%d %T,000') INFO mms-backup stopped" >> /var/log/mms-backup/agent.log | |
end script | |
start on runlevel [2345] | |
stop on runlevel [06] | |
script | |
cd /home/nasir/backup-agent | |
exec nohup /usr/bin/env ./backup-agent >> /var/log/mms-backup/agent.log 2>&1 | |
end script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu upstart file at /etc/init/mms-agent.conf | |
description "MongoDB Monitoring Service (MMS) Agent" | |
pre-start script | |
mkdir -p /var/log/mms-agent/ | |
end script | |
post-stop script | |
echo "$(date +'%Y-%m-%d %T,000') INFO mms-agent stopped" >> /var/log/mms-agent/agent.log | |
end script | |
start on runlevel [2345] | |
stop on runlevel [06] | |
exec nohup /usr/bin/env python /home/nasir/mms-agent/agent.py >> /var/log/mms-agent/agent.log 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment