Created
July 31, 2018 18:14
-
-
Save jun06t/870d72b80bd2e90a7e2cc4fb94a58e71 to your computer and use it in GitHub Desktop.
Revisions
-
jun06t created this gist
Jul 31, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ ### BEGIN INIT INFO # Provides: vault # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Vault server # Description: Vault secret management tool ### END INIT INFO [Unit] Description=Vault secret management tool Requires=network-online.target After=network-online.target [Service] User=vault Group=vault PIDFile=/var/run/vault/vault.pid PermissionsStartOnly=true ExecStartPre=-/bin/mkdir -p /var/run/vault ExecStartPre=/bin/chown -R vault:vault /var/run/vault ExecStart=/usr/local/bin/vault server \ -config=/usr/local/etc/vault/vault_server.hcl \ -log-level=debug ExecReload=/bin/kill -HUP $MAINPID LimitNOFILE=65536 KillMode=process KillSignal=SIGTERM Restart=on-failure RestartSec=42s LimitMEMLOCK=infinity [Install] WantedBy=multi-user.target