diff --git a/states/ipfs/ipfs.service.j2 b/states/ipfs/templates/ipfs.service.j2 similarity index 67% rename from states/ipfs/ipfs.service.j2 rename to states/ipfs/templates/ipfs.service.j2 index 7495b37..efca33d 100644 --- a/states/ipfs/ipfs.service.j2 +++ b/states/ipfs/templates/ipfs.service.j2 @@ -1,9 +1,9 @@ -## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} +# --init# {{ salt['pillar.get']('salt_managed', default='Salt Managed') }} [Unit] Description=ipfs p2p daemon After=network.target Requires=network.target - + [Service] Type=simple User=ipfs @@ -13,9 +13,9 @@ PermissionsStartOnly=true Nice=18 LimitNOFILE=8192 Environment=IPFS_FD_MAX=8192 -EnvironmentFile=-/etc/sysconfig/ipfs +EnvironmentFile=-/etc/default/ipfs StandardOutput=journal ExecStart=/usr/local/sbin/ipfs daemon - + [Install] WantedBy=multi-user.target \ No newline at end of file