Mantis - exim
|
||||||||||
Viewing Issue Advanced Details | ||||||||||
|
||||||||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: | |||||
4988 | packaging | minor | always | 2012-08-02 23:37 | 2012-08-12 21:31 | |||||
|
||||||||||
Reporter: | cwood | Platform: | ||||||||
Assigned To: | bwalton | OS: | ||||||||
Priority: | normal | OS Version: | ||||||||
Status: | assigned | Product Version: | ||||||||
Product Build: | Resolution: | open | ||||||||
Projection: | none | |||||||||
ETA: | none | Fixed in Version: | ||||||||
|
||||||||||
Summary: | 0004988: missing exim pidfile | |||||||||
Description: |
This is with: /var/opt/csw/pkgutil/packages/exim-4.76,REV=2012.05.07-SunOS5.9-i386-CSW.pkg The start clause in /var/opt/csw/svc/method/svc-cswexim reads (excerpts): DAEMON=/opt/csw/sbin/exim PIDFILE=/var/run/exim.pid test -z "$EXIM_PARAMS" && EXIM_PARAMS="-bd -q30m" case "$1" in start) echo "Starting MTA: \c" $DAEMON $EXIM_PARAMS echo "exim." ;; This borks svcadm for disable and restart, as found in /var/svc/log/network-cswexim:default.log: [ Aug 2 17:10:59 Stopping because service disabled. ] [ Aug 2 17:10:59 Executing stop method ("/var/opt/csw/svc/method/svc-cswexim stop"). ] Stopping MTA: cat: cannot open /var/run/exim.pid: No such file or directory Usage: kill [-l] [-n signum] [-s signame] job ... Or: kill [ options ] -l [arg ...] Because stop etc. need to read the pidfile: stop) echo "Stopping MTA: \c" kill `cat "$PIDFILE"` echo "exim." ;; To fix this, please have exim write a pid file. In /var/opt/csw/svc/method/svc-cswexim: test -z "$EXIM_PARAMS" && EXIM_PARAMS="-bd -oP ${PIDFILE} -q30m" In /etc/opt/csw/exim/exim-env.sh: EXIM_PARAMS="-bd -oP /var/run/exim.pid -q30m" |
|||||||||
Steps To Reproduce: | ||||||||||
Additional Information: |
As a workaround, if I create /etc/opt/csw/exim/exim-env.sh before installing CSWexim and give it this line: EXIM_PARAMS="-bd -oP /var/run/exim.pid -q30m" Then exim starts without any issues, and /var/run/exim.pid is written. Disable and restart act normally through svcadm. As background, I will be managing this thing through puppet, so will need to restart exim whenever a config file changes. Thank you for your OpenCSW packaging work, this is altogether very useful. |
|||||||||
Relationships |
| |||||||||
Attached Files: | ||||||||||
|
||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-08-02 23:37 | cwood | New Issue | ||||||||
2012-08-04 15:46 | bwalton | Note Added: 0010078 | ||||||||
2012-08-04 15:46 | bwalton | Assigned To | => bwalton | |||||||
2012-08-04 15:46 | bwalton | Status | new => assigned | |||||||
2012-08-04 16:29 | bwalton | Relationship added | related to 0004952 | |||||||
2012-08-04 16:30 | bwalton | Note Added: 0010079 | ||||||||
2012-08-05 00:49 | cwood | Note Added: 0010082 | ||||||||
2012-08-12 16:11 | cwood | Note Added: 0010086 | ||||||||
2012-08-12 21:31 | bwalton | Note Added: 0010087 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|