-
-
Save scelis/ca9d012cacc5022dbd24 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# This file is located at: /etc/service/myservice/log/run | |
PATH=/usr/local/bin:/usr/bin:/bin | |
mkdir -p /var/log/myservice | |
chown scelis:scelis /var/log/myservice | |
exec 2>&1 | |
exec setuidgid scelis multilog t s10485760 n5 '!tai64nlocal' /var/log/myservice |
This file contains 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
#!/bin/bash | |
# This file is located at: /etc/service/myservice/run | |
PATH=/usr/local/bin:/usr/bin | |
cd /home/scelis/repos/myservice | |
exec envdir /home/scelis/repos/myservice/env \ | |
setuidgid scelis \ | |
/usr/bin/python2.7 myservice.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment