Skip to content

Instantly share code, notes, and snippets.

@johnRivs
Last active January 27, 2017 07:49
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 johnRivs/a95610f497f83803c492742bf0e08515 to your computer and use it in GitHub Desktop.
Save johnRivs/a95610f497f83803c492742bf0e08515 to your computer and use it in GitHub Desktop.
Show service status after any service command on Ubuntu higher than 15.xx. chmod 700 srv.sh
#!/bin/sh
service "$1" "$2"
service "$1" status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment