Artix Linux Forum

Init systems => dinit => Topic started by: awake on 01 February 2025, 18:16:34

Title: Cant create dinit service
Post by: awake on 01 February 2025, 18:16:34
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?
Title: Re: Cant create dinit service
Post by: n00b on 01 February 2025, 19:59:56
add a log file?
Title: Re: Cant create dinit service
Post by: awake on 01 February 2025, 20:30:07
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?
Title: Re: Cant create dinit service
Post by: n00b on 01 February 2025, 22:23:37
did you read the man page?