Skip to content

Instantly share code, notes, and snippets.

@dnd
Last active August 8, 2017 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dnd/dce75cdc164efbbf1847c1642b30f8cd to your computer and use it in GitHub Desktop.
Save dnd/dce75cdc164efbbf1847c1642b30f8cd to your computer and use it in GitHub Desktop.
salt master command
# salt stg-worker1 cmd.run 'pgrep -f resque-scheduler'
stg-worker1:
1902
2392
stg-worker1 results of /proc/pid/stat
root@stg-worker1:~# cat /proc/1902/stat
1902 (bundle) S 1 1902 1902 0 -1 1077960960 34535 3464 0 0 639 104 0 1 20 0 5 0 4949494870 605548544 36035 18446744073709551615 94381196578816 94381199544724 140734704077184 140734704060448 140591484291006 0 0 4096 33582671 18446744073709551615 0 0 17 1 0 0 0 0 0 94381201643824 94381201664752 94381202518016 140734704082112 140734704082275 140734704082275 140734704082891 0
root@stg-worker1:~# cat /proc/2392/stat
cat: /proc/2392/stat: No such file or directory
salt master command
# salt stg-worker1 cmd.run 'pkill -9 -f resque-scheduler'
stg-worker1:
stg-worker1 minion log
2017-08-08 12:56:27,294 [salt.loader.192.168.170.41.int.module.cmdmod][ERROR ][2961] Command 'pkill -9 -f resque-scheduler' failed with return code: -9
2017-08-08 12:56:27,295 [salt.loader.192.168.170.41.int.module.cmdmod][ERROR ][2961] output:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment