CVS pserver and systemd

to use CVS through pserver, I’ve written two configuration files:

/etc/systemd/system/cvs.socket

# __ns__
[Unit]
Description=CVS Socket for Per-Connection Servers
[Socket]
ListenStream=2401
Accept=true
[Install]
WantedBy=sockets.target

/etc/systemd/system/cvs@.service

# __ns__
[Unit]
Description=CVS Per-Connection Server
[Service]
User=root
ExecStart=/usr/sbin/cvspserver
StandardInput=socket
StandardOutput=socket

after a boot, I have:

# systemctl status cvs.socket
● cvs.socket - CVS Socket for Per-Connection Servers
     Loaded: loaded (/etc/systemd/system/cvs.socket; disabled; vendor preset: disabled)
     Active: inactive (dead)
     Listen: [::]:2401 (Stream)
   Accepted: 0; Connected: 0;

Thanks for any help!

Hi,
if you’d like it start automatically at boot you should enable it:

sudo systemctl enabe cvs

then reboot and test it.

I think it’s

sudo systemctl enable cvs

?

Please (@anyone) pay attention when publishing commands, especially to newcomers.

1 Like

@mandian @rugyada

It’s

sudo systemctl enable cvs.socket

Looking at my old /root/.bash_history file, I see I’d already executed this command on my old system, but forgotten it

Sorry for the trouble and thanks a lot!

1 Like