Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active May 4, 2022 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pandanote-info/756b23a357aaaa0d8e00d491007adb22 to your computer and use it in GitHub Desktop.
Save pandanote-info/756b23a357aaaa0d8e00d491007adb22 to your computer and use it in GitHub Desktop.
IPFSのdaemonの起動用のサービスユニットファイルのコード例。
[Unit]
Description=Ipfs
After=network-online.target
[Service]
User=panda
WorkingDirectory=/home/panda
OOMScoreAdjust=-1000
ExecStart=/usr/local/bin/ipfs daemon --enable-gc --enable-namesys-pubsub
ExecStop=/usr/bin/pkill --signal SIGINT ipfs
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment