mdserver-web/plugins/postgresql/init.d/postgresql.service.tpl

16 lines
402 B
Smarty
Raw Permalink Normal View History

2022-08-07 08:46:40 -04:00
[Unit]
Description=PostgreSQL: a powerful open source database
After=network.target
[Service]
Type=forking
2022-08-10 12:13:15 -04:00
User=postgres
Group=postgres
2022-08-07 08:46:40 -04:00
WorkingDirectory={$APP_PATH}
2022-08-07 11:56:19 -04:00
ExecStart={$APP_PATH}/bin/pg_ctl start -D {$APP_PATH}/data
ExecReload={$APP_PATH}/bin/pg_ctl restart -D {$APP_PATH}/data
ExecStop={$APP_PATH}/bin/pg_ctl stop -D {$APP_PATH}/data
2022-08-07 08:46:40 -04:00
PrivateTmp=false
[Install]
WantedBy=multi-user.target