📚 node [[add service]]
add service
-
[[pull]] [[systemd]]
-
[[go]] https://www.maxlaumeister.com/u/run-ipfs-on-boot-ubuntu-debian/
- create
example.service
in/etc/system/system
sudo systemctl start example
sudo systemctl enable example
- create
-
[[go]] https://www.maxlaumeister.com/u/run-ipfs-on-boot-ubuntu-debian/
[Unit]
Description=IPFS daemon
After=network.target
[Service]
User=ipfs
Group=ipfs
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=default.target
⥅ node [[systemd]] pulled by user
-
I run all [[agora]] services as systemd [[user services]].
- How to keep a user process running:
-
Before you can run enable (making it sticky across reboots) above, you'll probably need to enable lingering for the user in question. As root (ask your friendly sysadmin if you somehow don't have root):
loginctl enable-linger username
-
If you get any bus errors, you may need to:
export XDG_RUNTIME_DIR=/run/user/\
id -u``
-
Scripts go in
.config/systemd/user/
, add anexample.service
file and then:systemctl --user start example
systemctl --user enable example
- See
agora-server.service
in [[go/agora-server]] as an example. - If you want to refer to the home directory in a user systemd service (I use a lot of these, also on my workstations), you can use the variable
%h
for it.~
,$HOME
won't work.
pull color="#b51f08">
<title>500 Internal Error wtf.
<link rel="stylesheet" href="https://doc.anagora.org/css/center.css"> <button class="pull-url" value="https://doc.anagora.org/css/center.css">">pull</button>
<div class="container-fluid text-center">
<div class="vertical-center-row">
<h1>500 Internal Error <small>wtf.</small></h1>
</div>
</div>
📖 stoas
- public document at doc.anagora.org/add-service
- video call at meet.jit.si/add-service
⥱ context
⥅ related node [[adding watson speech services]]
🔎 full text search for 'add service'