MisterBlackie Posted June 18, 2019 Share Posted June 18, 2019 Hi, so my issue is pretty simple: when I do a reboot or whatever, TCAdmin has to be started manually (./serviceman-service start, same for monitor). Have I forgotten something when I installed TCAdmin ? I looked at this thread https://clientforums.tcadmin.com/showthread.php?t=8959&highlight=Start+TCAdmin+boot The answer didn't help, I get this message: The TCAdmin Service Manager service is already installed So is there a button I gotta click ? I made a bash script for the moment that start TCAdmin automatically on startup, but I was wondering if there was an 'official way' to make it work. Thanks for your time Link to comment Share on other sites More sharing options...
Dennis Posted June 18, 2019 Share Posted June 18, 2019 What distro are you using? Link to comment Share on other sites More sharing options...
DeteCT0R Posted June 18, 2019 Share Posted June 18, 2019 You can use always use crontab for restarting all the staff what you need. @reboot /home/tcadmin/Monitor/monitor-service restart @reboot /home/tcadmin/Monitor/serviceman-service restart (Use restart if the app already started or crashed its only restart.) Link to comment Share on other sites More sharing options...
MisterBlackie Posted June 19, 2019 Author Share Posted June 19, 2019 (edited) I use Ubuntu 18.04 (Bionic Beaver) So what I did is pretty simple actually: I use systemd Here's the systemd script: [unit] Description=Start TCAdmin on machine start / reboot. It will start the service for console and the serviceman [service] Type=forking ExecStart=/usr/local/sbin/TCAdminAutoStartScript [install] WantedBy=multi-user.target Here's the batch script #!/bin/bash # Doit être changé pour le bon chemin d'accès aux services de TCAdmin # Should be change for the right directory of TCAdmin Monitor files TCAdminDir="/home/tcadmin/Monitor" "$TCAdminDir/serviceman-service" start "$TCAdminDir/monitor-service" start Again, is there a built in way to do this ? My scripts work but maybe it's not as efficient as it would be if I used the TCAdmin's way to start TCAdmin Edited June 19, 2019 by MisterBlackie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now