manish Posted December 14, 2015 Report Share Posted December 14, 2015 Hello, We have been running CentOS 7 successfully, but the server has not been automatically starting up with the legacy init.d startup scripts. Do you have a ".service" script available to use with "systemd" startup that provides the same functionality? Thank you! Link to comment Share on other sites More sharing options...
calbzam Posted December 21, 2015 Report Share Posted December 21, 2015 Hello, Are you using the Linux packages? They should include the server scripts by default. Regards, Carlos. Link to comment Share on other sites More sharing options...
dperham Posted January 11, 2016 Report Share Posted January 11, 2016 I am using Ubuntu 15.10, which also uses systemd but will start init.d scripts using some transparent legacy startup script translation. Getting plasticd to start on reboot was easy but not without some work. This is how I did it copy the existing plasticsd startup script into init.d sudo cp /opt/plasticscm5/server/plasticsd /etc/init.d cd /etc/init.d apply patch plasticsd.txt. This patch gets rid of the carriage return characters from the INIT INFO block adds the "Required-Start" INIT INFO to require the filesystem and the network to be started before plasicd (should have probably included the database server in there too) Set the home directory of plastic server (can optionally be removed) changes the kill logic in the stop function to try to nicely kill the plastic daemon several times and will not remove the pid file if plasticd is still alive. patch < plasticsd.txt make systemd recognize the new script and restart systemctl daemon-reload service plasticsd restart Link to comment Share on other sites More sharing options...
manu Posted January 13, 2016 Report Share Posted January 13, 2016 Hi! thank you dperham for providing a solution! We'll take case of updating it. Link to comment Share on other sites More sharing options...
manu Posted January 13, 2016 Report Share Posted January 13, 2016 I have applied the patch but it refuses to restart without a "plasticsd.service" file: service plasticsd restart Failed to restart plasticsd.service: Unit plasticsd.service failed to load: No such file or directory. Link to comment Share on other sites More sharing options...
dperham Posted January 15, 2016 Report Share Posted January 15, 2016 just confirming that you put the plasticsd init script in /etc/init.d confirm ownership and permissions ls -al /etc/init.d/plasticsd -rwxr-xr-x 1 root root 3333 Jan 11 08:51 /etc/init.d/plasticsd ran "systemctl reload-daemon" Link to comment Share on other sites More sharing options...
manu Posted January 15, 2016 Report Share Posted January 15, 2016 Nothing "/etc/init.d/plasticsd" is a symlink and the permissions are: lrwxrwxrwx 1 root root 33 Dec 23 02:15 /etc/init.d/plasticsd -> /opt/plasticscm5/server/plasticsd Link to comment Share on other sites More sharing options...
dperham Posted January 15, 2016 Report Share Posted January 15, 2016 what is the output of 'systemctl status plasticsd' alternatively you could create /etc/systemd/system/plasticsd.service and put the following in it: [Unit] Description=PlasticSCM Service After=local-fs.target syslog.service network.target mysql.service [Service] Type=forking User=root Group=root ExecStart=/opt/plasticscm5/server/plasticsd start ExecStop=/opt/plasticscm5/server/plasticsd stop [Install] WantedBy=multi-user.target Link to comment Share on other sites More sharing options...
manu Posted January 18, 2016 Report Share Posted January 18, 2016 This is the output: sudo systemctl status plasticsd [sudo] password for codice: ● plasticsd.service Loaded: not-found (Reason: No such file or directory) Active: inactive (dead) sudo systemctl daemon-reload sudo service plasticsd restart Failed to restart plasticsd.service: Unit plasticsd.service failed to load: No such file or directory. Even with the "/etc/systemd/plasticsd.service" file I get the same error (I did the "systemctl daemon-reload") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.