[Unit] Description=postgresql_plop_rct_service After=network.target AssertPathExists=!/etc/noprod [Service] Type=forking User=postgres #Disable OOM kill on postmaster OOMScoreAdjust=-1000 Environment=PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj Environment=PG_OOM_ADJUST_VALUE=0 WorkingDirectory=/tools/list/postgres/script/bin ExecStart=/tools/list/postgres/script/bin/rc_postgres.ksh start plop_rct ExecStop=/tools/list/postgres/script/bin/rc_postgres.ksh stop plop_rct ExecReload=/bin/kill -HUP $MAINPID Restart=on-abort KillMode=mixed KillSignal=SIGINT TimeoutSec=0 [Install] WantedBy=multi-user.target