Skip to content

Instantly share code, notes, and snippets.

@ddksr
Created September 21, 2014 10:17
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 ddksr/2300ab6fc488d71ddcf0 to your computer and use it in GitHub Desktop.
Save ddksr/2300ab6fc488d71ddcf0 to your computer and use it in GitHub Desktop.
Service monitor Archlinux sources
<services>
<name>Daemons (Full Arch-specific config)</name>
<description>
This file contains a more detailed source for archlinux (or maybe systemd) specific services.
</description>
<service id="apache2-daemon-arch" priority="2" sudo="yes" icon="apache">
<name>Apache2 Webserver</name>
<description>The most commonly used web server</description>
<installcheck>ls /usr/sbin/apachectl</installcheck>
<runningcheck>systemctl status httpd | grep running</runningcheck>
<startcommand>systemctl start httpd &amp;> /dev/null</startcommand>
<stopcommand>systemctl stop httpd &amp;> /dev/null</stopcommand>
</service>
<service id="mysql-daemon" priority="2" sudo="yes" icon="database">
<name>MySQL Database</name>
<description>Database server, mainly used for PHP</description>
<installcheck>ls /usr/bin/mysqld</installcheck>
<runningcheck>systemctl status mysqld | grep running</runningcheck>
<startcommand>systemctl start mysqld &amp;> /dev/null</startcommand>
<stopcommand>systemctl stop mysqld &amp;> /dev/null</stopcommand>
</service>
</services>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment