Hello,

having cvs.socket:

[Unit]
Description=CVS Server Activation Socket
[Socket]
ListenStream=2401
Accept=true
[Install]
WantedBy=sockets.target

and cvs@.service:

[Unit]
Description=CVS Server
After=local-fs.target
[Service]
Environment=HOME=/var/cvs
ExecStart=-/usr/bin/cvs -f --allow-root=/var/cvs pserver
StandardInput=socket

How can I stop all running instances?

I start cvs.socket, I connect client to the TCP port, and now I want to
stop all instances. Stopping cvs.socket disappears listening socket, but
remaining cvs@*.service instances are still running. My naive attept to
stop ther service is not recognized by systemctl:

# systemctl stop cvs\@.service
Failed to issue method call: Unit name cvs@.service is not valid.
Failed to issue method call: Unit name cvs@.service is not valid.
# systemctl stop cvs.service
Failed to issue method call: Unit cvs.service not loaded.

How can I do it?

-- Petr

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to