diff options
author | binary <me@rgoncalves.se> | 2020-08-11 11:28:18 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-08-11 11:28:18 +0200 |
commit | e14b4f0a4b4a89b2a5cd4a2989496b8c4e7740e8 (patch) | |
tree | 1b8b3225f85fde3cdeacda8423830ec6f72a0ee9 /roles/setup_mkdocs | |
parent | 87a565c0481a58e0d5d8a2a3e33459f1af132ca6 (diff) | |
parent | 9e4cff178875d30b04236b52942e83459a641560 (diff) | |
download | infrastructure-e14b4f0a4b4a89b2a5cd4a2989496b8c4e7740e8.tar.gz |
refactored with new files
Diffstat (limited to 'roles/setup_mkdocs')
-rw-r--r-- | roles/setup_mkdocs/templates/mkdocs.service | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/roles/setup_mkdocs/templates/mkdocs.service b/roles/setup_mkdocs/templates/mkdocs.service new file mode 100644 index 0000000..eecd126 --- /dev/null +++ b/roles/setup_mkdocs/templates/mkdocs.service @@ -0,0 +1,27 @@ + +# =========================================================================== # +# _ __ __ __ _ +# __ ______ (_) /_ _______ ______ _____/ /_/ /_ (_)___ ____ _ +# / / / / __ \/ / __/ / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/ +# / /_/ / / / / / /__ (__ ) /_/ / / / / /__/ /_/ / / / / / / / /_/ / +# \__,_/_/ /_/_/\__(_) /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, / +# /____/ /____/ +# +# =========================================================================== # + +[Unit] +Description=Webserver for markdown documentation + +[Service] +Type=simple +User={{ mkdocs_user }} +WorkingDirectory={{ mkdocs_files_directory }} +ExecStart=mkdocs serve --dev-addr {{g_ip_mkdocs_gui}}:{{g_port_mkdocs_gui }} +ExecStop=/bin/kill -s HUP $MAINPID +RuntimeDirectoryMode=0700 + +Restart=on-failure +RestartSec=60s + +[Install] +WantedBy=default.target |