[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SystemD problem with launching a server



On Thu, Aug 09, 2018 at 08:41:39AM +0200, john doe wrote:
> On 8/9/2018 1:02 AM, Bill wrote:
> >Hi,
> >
> >So I'd like to run rinetd at boot time on Stretch along with sshd.
> >
> >I've no problem running rinetd manually using /usr/sbin/rinetd
> >or in a script using the same command. ps aux |grep rinetd shows it's
> >running and it works as expected.
> >
> >So I've written a service file for systemd,
> >/etc/systemd/system/rinetd.service and enabled it with systemctl enable
> >/etc/systemd/system/rinetd.service. At boot time the file gets run but
> >nothing shows up with ps aux, although sshd is running correctly. I think
> >the problem is with the systemd file. Here's the rinetd.service file:
> >
> ># /etc/systemd/system/rinetd.service
> ># A systemd.service file to start
> ># /usr/sbin/rinetd at boot time.
> >
> >[Unit]
> >Description=Start rinetd server
> >After=multi-user.target network.target sshd.service

Try removing multi-user.target from the "After" directive

> >
> >[Service]
> >Type=oneshot
> >ExecStart=/usr/sbin/rinetd
> >Restart=no
> >
> >[Install]
> >WantedBy=multi-user.target

I am guessing that specifying both "multi-user.target" in both the "After" and
"WantedBy" directives is probably causing this service to fail.

** DISCLAIMER: I am new to SystemD myself




> >
> >Any clues? Is this file too sparse? Or am I pining for the fjords?
> >
> 
> Do you see anything in the log (systemctl status rinetd)?
> 
> From google:
> 
> https://github.com/mixool/rinetd/wiki/System-startup-script
> https://github.com/mixool/rinetd
> 
> Isn't Debian providing a service file?
> 
> -- 
> John Doe
> 


Reply to: