chdao / factorioservers

Pre-script for creating multiple factorio instances on the same server.
2 stars 0 forks source link

Permission problems #2

Open Blauschirm opened 8 years ago

Blauschirm commented 8 years ago

Hi, sorry for opening an issue for a probably stupid question, but I cant get your script to run. First question: In your readme you are writing: "factorio@.service goes in /lib/systemd/system/factorio@.service" You don't mean a folder called /factorio@.service in which the file with the same name should be copied, right?

My main problem shows as follows:

Sep 24 16:53:31 systemd[1]: Unit factorio@34198.service entered failed state.
Sep 24 16:53:46 systemd[1616]: Failed at step EXEC spawning /usr/local/bin/pre-start-factorio: Permission denied
-- Subject: Process /usr/local/bin/pre-start-factorio could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The process /usr/local/bin/pre-start-factorio could not be executed and failed.
--
-- The error number returned while executing this process is 13.

How should be the owner of all the files? Shouldn't it be root and only the server itself runs as factorio:factorio?

PS: there was no /etc/defaults, only /etc/default. Is this a problem? OS is debian jessie.

Greetings, Max

chdao commented 7 years ago

I did not get notified for this, sorry. Just noticed.

The file in /usr/local/bin/pre-start-factorio should be +x for all. The owner of that file is irrelevant.

For the /etc/defaults, that's a typo, it should read /etc/default/