Skip to content

Instantly share code, notes, and snippets.

@pandanote-info
Last active May 4, 2022 13:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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