Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a systemd user service example file #88

Open
JordanPlayz158 opened this issue May 9, 2024 · 0 comments
Open

Adding a systemd user service example file #88

JordanPlayz158 opened this issue May 9, 2024 · 0 comments

Comments

@JordanPlayz158
Copy link

I have created a systemd user service file that starts ARRPC and I think it would be good to include it as an example in the repository. It is not perfect and could have improvements but I made it the best and most simple I could.

[Service]
Type=simple
ExecStart=/usr/bin/bash -c '/usr/bin/git fetch && /usr/bin/git pull && /usr/local/bin/npm install && /usr/bin/node src'
WorkingDirectory=/path/to/arrpc

[Install]
WantedBy=default.target

The only prerequisite is that you have cloned the ARRPC git repository yourself (and should go without saying, have the dependencies to run ARRPC installed) and to put this in your systemd user service folder (in my case ~/.config/systemd/user) and then execute systemctl --user enable --now arrpc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant