Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Cant create dinit service (Read 176 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Cant create dinit service

I want to start teamspeak server by sh in working dir
Code: [Select]
type = scripted
command = /home/awake/ts/ts3server_startscript.sh start
restart = false
working-dir = /home/awake/ts
run-as = awake
pid-file = /home/awake/ts/ts3server.pid
server started and after 1min its crushing
Code: [Select]
sudo dinitctl status ts3server
Service: ts3server
    State: STARTING
    Activation: explicitly started
    Process ID: 19201
i tried start-timeout =0, type = process,bgprocess
but it didnt help
what am i doing wrong?

Re: Cant create dinit service

Reply #1
add a log file?

Re: Cant create dinit service

Reply #2
Code: [Select]
i added 
depends-on= elogind and it works, so
sudo dinitctl status ts3server
[sudo] password for awake:
Service: ts3server
    State: STARTED
    Activation: start due to dependent(s)
so if i need to describe autostart i must describe depends-on?

Re: Cant create dinit service

Reply #3
did you read the man page?