Last active
May 4, 2022 13:10
-
-
Save pandanote-info/756b23a357aaaa0d8e00d491007adb22 to your computer and use it in GitHub Desktop.
IPFSのdaemonの起動用のサービスユニットファイルのコード例。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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