[0.17.x] Process name in linux is "Main"
Posted: Sun Mar 10, 2019 6:24 pm
In 'top', the name of the factorio process is "Main". This leads to pgrep not working. In 'ps', it's the path to the binary (which seems okay to me)
consider:
$ ps auxww | grep factorio
fstd 21028 43.6 57.0 11913472 9337328 pts/26 RLl+ Mar09 784:27 ./bin/x64/factorio
$ pgrep -l factorio
$ pgrep -l Main
21028 Main
$
I don't know whether this is due to setproctitle(3) or setprogname(3). Could you change that so it reads 'factorio' instead?
consider:
$ ps auxww | grep factorio
fstd 21028 43.6 57.0 11913472 9337328 pts/26 RLl+ Mar09 784:27 ./bin/x64/factorio
$ pgrep -l factorio
$ pgrep -l Main
21028 Main
$
I don't know whether this is due to setproctitle(3) or setprogname(3). Could you change that so it reads 'factorio' instead?