Jump to content

Start Monitor/serviceman on boot


MisterBlackie

Recommended Posts

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

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

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 by MisterBlackie
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 124 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use