Projects
Kolab:Winterfell
cyrus-imapd
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
cyr_systemd_helper
Changed
@@ -25,6 +25,22 @@ runuser=/usr/sbin/runuser fi +reload() { + if [ ! -f /var/run/cyrus-master.pid ]; then + exit 255 + fi + + if [ -z "$(pidof cyrus-master)" ]; then + exit 1 + fi + + if [ "$(cat /var/run/cyrus-master.pid)" != "$(pidof cyrus-master)" ]; then + exit 1 + fi + + kill -HUP $(cat /var/run/cyrus-master.pid) +} + start() { cd $CONFIGDIRECTORY $runuser - cyrus -s /bin/bash -c '/usr/lib/cyrus-imapd/mkimap' >/dev/null 2>&1 < /dev/null @@ -46,6 +62,10 @@ } case "$1" in + reload) + reload + ;; + start) start ;;
View file
cyrus-imapd.service
Changed
@@ -7,6 +7,7 @@ EnvironmentFile=/etc/sysconfig/cyrus-imapd ExecStartPre=/usr/lib/cyrus-imapd/cyr_systemd_helper start ExecStart=/usr/lib/cyrus-imapd/cyrus-master $CYRUSOPTIONS +ExecReload=/usr/lib/cyrus-imapd/cyr_systemd_helper reload ExecStopPost=/usr/lib/cyrus-imapd/cyr_systemd_helper stop [Install]
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.