# add service

- [[push]] [[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`

```
[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
```

[//begin]: # "Autogenerated link references for markdown compatibility"
[push]: push "Push"
[systemd]: systemd "Systemd"
[go]: go "Go"
[//end]: # "Autogenerated link references"