mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
392 B
16 lines
392 B
3 years ago
|
[Unit]
|
||
|
Description=PostgreSQL: a powerful open source database
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
User=postgres
|
||
|
Group=postgres
|
||
|
WorkingDirectory={$APP_PATH}
|
||
|
ExecStart={$APP_PATH}/pg_ctl start -D {$APP_PATH}/data
|
||
|
ExecReload={$APP_PATH}/pg_ctl restart -D {$APP_PATH}/data
|
||
|
ExecStop={$APP_PATH}/pg_ctl stop -D {$APP_PATH}/data
|
||
|
PrivateTmp=false
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|