Jump to content

Ubuntu Server init.d

Go to solution Solved by 2FA,

Make your own script which runs those two things, then you only need to have your custom script start on boot which will then execute the other two.

So trying to get teamspeak3 to autostart with a "option" since it starts with ts3server_startscript.sh, but i need it to start with that and this  start inifile=ts3server.ini so ./ts3server_startscript.sh start inifile=ts3server.ini in the auto start, how would I do this?

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/604700-ubuntu-server-initd/
Share on other sites

Link to post
Share on other sites

Make your own script which runs those two things, then you only need to have your custom script start on boot which will then execute the other two.

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to comment
https://linustechtips.com/topic/604700-ubuntu-server-initd/#findComment-7836290
Share on other sites

Link to post
Share on other sites

1 minute ago, DeadEyePsycho said:

Make your own script which runs those two things, then you only need to have your custom script start on boot which will then execute the other two.

Ah right, Thank you :)

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/604700-ubuntu-server-initd/#findComment-7836295
Share on other sites

Link to post
Share on other sites

17 minutes ago, DeadEyePsycho said:

Make your own script which runs those two things, then you only need to have your custom script start on boot which will then execute the other two.

Um how would I do this? Tryed searching, only used Batch before not Shell.

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/604700-ubuntu-server-initd/#findComment-7836369
Share on other sites

Link to post
Share on other sites

Make a file called something like ts.sh. It is just like a batch file, just put your commands in the file in the proper order. As for making it start on boot: http://askubuntu.com/questions/228304/how-do-i-run-a-script-at-start-up

[Out-of-date] Want to learn how to make your own custom Windows 10 image?

 

Desktop: AMD R9 3900X | ASUS ROG Strix X570-F | Radeon RX 5700 XT | EVGA GTX 1080 SC | 32GB Trident Z Neo 3600MHz | 1TB 970 EVO | 256GB 840 EVO | 960GB Corsair Force LE | EVGA G2 850W | Phanteks P400S

Laptop: Intel M-5Y10c | Intel HD Graphics | 8GB RAM | 250GB Micron SSD | Asus UX305FA

Server 01: Intel Xeon D 1541 | ASRock Rack D1541D4I-2L2T | 32GB Hynix ECC DDR4 | 4x8TB Western Digital HDDs | 32TB Raw 16TB Usable

Server 02: Intel i7 7700K | Gigabye Z170N Gaming5 | 16GB Trident Z 3200MHz

Link to comment
https://linustechtips.com/topic/604700-ubuntu-server-initd/#findComment-7836406
Share on other sites

Link to post
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

×