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
# salt-minion.conf | |
description "salt-minion upstart daemon" | |
author "Jeff Bauer <[email protected]>" | |
# copy this file to /etc/init | |
start on (net-device-up and local-filesystems) | |
stop on shutdown | |
expect fork |
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
#!/usr/bin/env python | |
import os, subprocess | |
uid, gid = 5, 60 | |
def preexec_fn(): | |
os.setgid(uid) | |
os.setuid(gid) | |
cmd = ['uname', '-a'] |
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
xev -event keyboard | egrep -o 'keycode.*\)' |