[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Can not start a script with systemd



On Sun, 2022-03-13 at 10:17 -0400, Greg Wooledge wrote:
> Or, if you want to get rid of the wrapper script entirely:
> 
> =============================================================
> [Unit]
> Description=Alien Arena Dedicated Server
> 
> [Service]
> Type=exec
> User=aaserver
> WorkingDirectory=/home/aaserver/aa
> ExecStart=/home/aaserver/aa/alienarena-ded +set game arena +exec
> ctfir.cfg
> 
> [Install]
> WantedBy=multi-user.target
> =============================================================

 Thanks for your informative reply and making things more clearer to
me.

 I still get an error and alienarena-ded does not load. I forgot to
mention that the server doesn't run in the background but when loaded
it stays in it's console. I tried all the options you suggested, with
and without the wrapper script and as exec and forking type.
 
 I did like your last approach which I hoped would have worked. It does
seem more simple to let systemd handle the whole thing. Oh, and one
more thing, the .cfg file is in a other directory (~/.local/share/cor-
games/arena) I do believe this has to do with some XDG stuff, but I
assume that the User=aaserver directive handles that.


Reply to: