Created
September 21, 2014 10:17
-
-
Save ddksr/2300ab6fc488d71ddcf0 to your computer and use it in GitHub Desktop.
Service monitor Archlinux sources
This file contains 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
<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 &> /dev/null</startcommand> | |
<stopcommand>systemctl stop httpd &> /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 &> /dev/null</startcommand> | |
<stopcommand>systemctl stop mysqld &> /dev/null</stopcommand> | |
</service> | |
</services> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment