aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_mkdocs/templates/mkdocs.service
blob: 0befc0dd37243fe5caaaa0ccf799fbb5a007659e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
remember that computers suck.