Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ensure services.sh

From Randomness wiki
Revision as of 16:47, 21 September 2024 by Derg (talk | contribs) (Created page with " <syntaxhighlight lang="shell"> #!/bin/sh if [ $(id -u) -ne 0 ]; then echo Must be run as root >&2 exit 1 fi service cron start service atd start service apache2 start #service ssh start </syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
#!/bin/sh
if [ $(id -u) -ne 0 ]; then
  echo Must be run as root >&2
  exit 1
fi
service cron start
service atd start
service apache2 start
#service ssh start