paulbsd-salt/states/ipfs/templates/ipfs.service.j2

21 lines
429 B
Plaintext
Raw Normal View History

2024-01-27 10:42:22 +01:00
# --init# {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
2020-07-10 00:58:55 +02:00
[Unit]
Description=ipfs p2p daemon
After=network.target
Requires=network.target
2024-01-27 10:42:22 +01:00
2020-07-10 00:58:55 +02:00
[Service]
Type=simple
User=ipfs
RestartSec=1
Restart=always
PermissionsStartOnly=true
Nice=18
LimitNOFILE=8192
Environment=IPFS_FD_MAX=8192
2024-01-27 10:42:22 +01:00
EnvironmentFile=-/etc/default/ipfs
2020-07-10 00:58:55 +02:00
StandardOutput=journal
ExecStart=/usr/local/sbin/ipfs daemon
2024-01-27 10:42:22 +01:00
2020-07-10 00:58:55 +02:00
[Install]
WantedBy=multi-user.target