Skip to content

Ubuntu #216

Answered by 3urobeat
casper-none asked this question in Q&A
Nov 6, 2023 · 1 comments · 21 replies
Discussion options

You must be logged in to vote

Alright, found a better solution for now - simply define a WorkingDirectory.
Your service file should look like this:

[Unit]
Description=Comment Bot
After=network.target

[Service]
WorkingDirectory=/home/comms/commentbot
ExecStart=/usr/bin/node start.js
Restart=on-success
RestartSec=5s

[Install]
WantedBy=multi-user.target

I'll update #217 once the bug has been fixed :)

Replies: 1 comment 21 replies

Comment options

You must be logged in to vote
21 replies
@casper-none
Comment options

@3urobeat
Comment options

@3urobeat
Comment options

Answer selected by casper-none
@casper-none
Comment options

@3urobeat
Comment options

@casper-none
Comment options

@3urobeat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants