diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-18 20:56:16 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2017-09-18 20:56:16 +0200 |
commit | 06ebc0457992bddfca74c3decc554d70ffdd310d (patch) | |
tree | ddc2038690c7e0bbd7146b3375681b919e91ab95 /units/server-services | |
parent | a2cbc59e55ed21f755f45a5db2df5695a2220315 (diff) |
Move all jobs definition files into pxu units
Diffstat (limited to 'units/server-services')
-rw-r--r-- | units/server-services/jobs.pxu | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/units/server-services/jobs.pxu b/units/server-services/jobs.pxu new file mode 100644 index 00000000..de388be8 --- /dev/null +++ b/units/server-services/jobs.pxu @@ -0,0 +1,48 @@ +plugin: shell +id: services/open_ssh_test +requires: package.name == 'ssh' +command: pgrep sshd >/dev/null || (echo 'FAIL: sshd is not running.' 2>&1 && false) +_description: Verifies that sshd is running. + +plugin: shell +id: services/print_server_test +requires: package.name == 'cups' +command: pgrep cupsd >/dev/null || (echo 'FAIL: cupsd is not running.' 2>&1 && false) +_description: Verifies that Print/CUPs server is running. + +plugin: shell +id: services/dns_server_test +requires: + package.name == 'bind9' + package.name == 'dnsutils' +user: root +command: dns_server_test +_description: Verifies that DNS server is running and working. + +plugin: shell +id: services/samba_test +requires: + package.name == 'samba' + package.name == 'winbind' +user: root +command: samba_test +_description: Verifies that Samba server is running. + +plugin: shell +id: services/lamp_test +requires: + package.name == 'apache2' + package.name == 'php5-mysql' + package.name == 'libapache2-mod-php5' + package.name == 'mysql-server' +user: root +command: lamp_test +_description: Verifies that the LAMP stack is running (Apache, MySQL and PHP). + +plugin: shell +id: services/tomcat_test +requires: package.name == 'tomcat6' +user: root +command: tomcat_test +_description: Verifies that Tomcat server is running and working. + |