Files
mx_bec/deployment/systemd/mx-bec-service.service

20 lines
558 B
Desktop File

[Unit]
Description=MX BEC service (AareBec)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
Environment=BEAMLINE=x10sa
Environment=CONFIG_REDIS_URL=redis://mx-x10sa-queue-01:6379
# Started through bash: SELinux does not let systemd (init_t) execute files on NFS (nfs_t) directly
ExecStart=/bin/bash -c 'exec /sls/x10sa/config/bec/test/bec_venv/bin/mx-bec-service'
# the service shuts down cleanly on a keyboard interrupt
KillSignal=SIGINT
TimeoutStopSec=30
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target