diff options
| author | Joe Carstairs <me@joeac.net> | 2026-08-12 11:05:38 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-08-12 11:05:38 +0100 |
| commit | 9bb0b7bab5e7d2bc441e65250c35f34e7975583f (patch) | |
| tree | 586ab510cd0c82b059546b10c3cbd9a812e7ec9f /ansible/roles/mox/files | |
| parent | 0b0ce5e0a3a95e3a902f193b344a3891d255a93e (diff) | |
mox service waits for global ipv6
Diffstat (limited to 'ansible/roles/mox/files')
| -rw-r--r-- | ansible/roles/mox/files/openrc/mox | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/ansible/roles/mox/files/openrc/mox b/ansible/roles/mox/files/openrc/mox deleted file mode 100644 index e5fc838..0000000 --- a/ansible/roles/mox/files/openrc/mox +++ /dev/null @@ -1,58 +0,0 @@ -#!/sbin/openrc-run - -description="Run mox email server" -extra_commands="configtest" -description_configtest="Check configuration via \"mox config test\"" - -configtest() -{ - if ! [ -f ~mox/config/mox.conf ]; then - eerror "The config file ~mox/config/mox.conf does not exist!" - return 1 - fi - cd ~mox - if mox config test >&/dev/null; then - einfo "config: ok" - else - eerror "config: error" - return 1 - fi -} - -depend() -{ - need unbound -} - -start() -{ - configtest || return 1 - ebegin "Starting mox" - start-stop-daemon --start \ - --exec /usr/bin/mox \ - --background \ - --chdir ~mox \ - --stdout /var/log/mox.log \ - --stderr /var/log/mox.log \ - --make-pidfile \ - --pidfile /run/mox.pid \ - -- serve - eend $? -} - -stop() -{ - ebegin "Stopping mox" - start-stop-daemon --stop \ - --exec /usr/bin/mox \ - --pidfile /run/mox.pid - eend $? -} - -restart() -{ - ebegin "Restarting mox" - svc_stop - svc_start - eend $? -} |
