From 68c01a04cd6268c1dee66678c258cd4c240d5bb1 Mon Sep 17 00:00:00 2001 From: binary Date: Tue, 30 Jun 2020 19:24:22 +0200 Subject: Cleanup for public release --- roles/setup_mkdocs/templates/mkdocs.service | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 roles/setup_mkdocs/templates/mkdocs.service (limited to 'roles/setup_mkdocs/templates') diff --git a/roles/setup_mkdocs/templates/mkdocs.service b/roles/setup_mkdocs/templates/mkdocs.service new file mode 100644 index 0000000..0befc0d --- /dev/null +++ b/roles/setup_mkdocs/templates/mkdocs.service @@ -0,0 +1,24 @@ + +# =========================================================================== # +# _ __ __ __ _ +# __ ______ (_) /_ _______ ______ _____/ /_/ /_ (_)___ ____ _ +# / / / / __ \/ / __/ / ___/ / / / __ \/ ___/ __/ __ \/ / __ \/ __ `/ +# / /_/ / / / / / /__ (__ ) /_/ / / / / /__/ /_/ / / / / / / / /_/ / +# \__,_/_/ /_/_/\__(_) /____/\__, /_/ /_/\___/\__/_/ /_/_/_/ /_/\__, / +# /____/ /____/ +# +# =========================================================================== # + +[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 + +[Install] +WantedBy=default.target -- cgit v1.2.3