[Unit] Description=P4 Log Feeder - feeds Perforce server log chunks to LogChunksDir After=network.target # If p4d is managed by systemd on this host, uncomment to add ordering: # After=p4d_1.service [Service] Type=simple User=perforce Group=perforce # SDP environment: P4LOG and LOGS are set per instance in /p4//bin/p4_vars. # Adjust the instance number and source the vars file to populate the environment. # Example for instance 1: EnvironmentFile=-/p4/common/bin/p4_vars Environment=INSTANCE=1 ExecStart=/p4/common/site/log_feeder/p4lf -config /p4/common/site/log_feeder/p4lf.cfg # On SIGHUP: reload config and rotate p4lf's own log. ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=10s # Ensure clean shutdown: SIGTERM first, then SIGKILL after 30s. TimeoutStopSec=30 KillMode=mixed KillSignal=SIGTERM # Limit resource usage. LimitNOFILE=65536 StandardOutput=null StandardError=journal [Install] WantedBy=multi-user.target