Jump to content


Photo

10.5 on Ubuntu 16.04

systemd startup script

  • Please log in to reply
3 replies to this topic

#1 flickerfly

flickerfly

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationColorado Springs, CO

Posted 28 July 2016 - 09:47 PM

It appears that client 10.05 works fine on Ubuntu 16.04 server, but the startup scripts do not operate properly.

$ sudo systemctl start rcl
Failed to start rcl.service: Unit rcl.service not found.
$ sudo service rcl start
Failed to start rcl.service: Unit rcl.service not found.

Has anyone built startup scripts for the systemd yet?  


  • M. Rosen and JoryikOl like this

#2 M. Rosen

M. Rosen

    Occasional Forum Poster

  • Members
  • 1 posts

Posted 02 August 2016 - 04:08 PM

Is this related to the use of Upstart instead of Systemd? https://wiki.ubuntu....ForUpstartUsers

#3 flickerfly

flickerfly

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationColorado Springs, CO

Posted 04 August 2016 - 10:06 PM

Here is what I ended up coming up with. It should be put in /etc/systemd/system/

 

https://github.com/f...6fa/rcl.service

[Unit]
Description=Retrospect backup client
After=network.target local-fs.target system.slice systemd-journald-dev-log.socket basic.target sysinit.target systemd-journald.socket
Before=shutdown.target graphical.target multi-user.target

[Service]
ExecStart=/usr/local/retrospect/client/retroclient 
ExecStop=/usr/local/retrospect/client/retrocpl -stop
Restart=on-failure
RestartSec=60s

[Install]
WantedBy=multi-user.target

  • M. Rosen likes this

#4 flickerfly

flickerfly

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationColorado Springs, CO

Posted 04 August 2016 - 10:08 PM

Is this related to the use of Upstart instead of Systemd? https://wiki.ubuntu....ForUpstartUsers

 

Other way around. Ubuntu 16.04 uses Systemd where it used to use Upstart. The one thing I can't replicate is gathering the status from the service in the same way as was done before. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users