Skip Navigational Links
LISTSERV email list manager
LISTSERV - COMMUNITY.EMAILOGY.COM
LISTSERV Menu
Log In
Log In
LISTSERV 17.5 Help - LSTSRV-L Archives
LISTSERV Archives
LISTSERV Archives
Search Archives
Search Archives
Register
Register
Log In
Log In

LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Menu
LISTSERV Archives LISTSERV Archives
LSTSRV-L Home LSTSRV-L Home

Log In Log In
Register Register

Subscribe or Unsubscribe Subscribe or Unsubscribe

Search Archives Search Archives
Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
Re: systemd registration of listserv on modern Linux
From:
F J Kelley <[log in to unmask]>
Reply To:
LISTSERV Site Administrators' Forum <[log in to unmask]>
Date:
Fri, 23 Sep 2016 00:55:23 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (54 lines)
We're running on RHEL 6, but I'd be interested in the solution to this.

________________________________________
From: LISTSERV Site Administrators' Forum <[log in to unmask]> on behalf of Scott Kraczek <[log in to unmask]>
Sent: Thursday, September 22, 2016 5:21 PM
To: [log in to unmask]
Subject: systemd registration of listserv on modern Linux

Howdy,

I tried dropping the L-Soft provided sysV script into /etc/init.d on my new RHEL7 listserv server, but found that stopping the service under systemd failed to kill all the  ./lsv processes like it used to on RHEL5, leaving two ./lsv zombies to get in the way of maintenance operations. In general, killing the main Listserv PID as recommended by L-Soft just doesn’t seem to kill Listserv anymore:

kill `cat $LSVHOME/spool/listserv.PID`


Since I couldn’t find a reliable method to kill listserv all the way from the PID, I tried using the lcmd  tool to issue a clean SHUTDOWN command to listserv. I couldn’t convince listserv that root was authorized to run commands without making root@hostname a quiet, hidden Admin. Eventually I was able to convince lcmd to shutdown listserv, but I’m not sure if this is the best way.

Since I was re-writing the init script, I figured I might as well learn systemd. I came up with the following systemd unit file, (which relies on root@hostname to be a Listserv admin):

[Unit]
Description=Listserv mailing lists by LSoft
After=network.target postfix.service

[Service]
PIDFile=/home/listserv/spool/listserv.PID
ExecStart=/home/listserv/go bg
ExecReload=/home/listserv/go bg
KillMode=process
Restart=on-failure
RestartSec=42s
ExecStop=/usr/local/bin/lcmd  SHUTDOWN

[Install]
WantedBy=multi-user.target


Anyone have a better, more reliable way to register Listserv under systemd?

Scott K
IT Engineer, BYU


________________________________

To unsubscribe from the LSTSRV-L list, click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1

############################

To unsubscribe from the LSTSRV-L list:
write to: mailto:[log in to unmask]
or click the following link:
http://peach.ease.lsoft.com/scripts/wa-PEACH.exe?SUBED1=LSTSRV-L&A=1

ATOM RSS1 RSS2

COMMUNITY.EMAILOGY.COM CataList Email List Search Powered by LISTSERV