520c76007a
It was recommended by Danimo because /etc is for mutable stuff It also adds comments with context about this file The owner is set to root:root and permission 600 to be only readable by root (also Danimo suggestion)
29 lines
764 B
Desktop File
29 lines
764 B
Desktop File
[Unit]
|
|
Description=BigBlueButton GraphQL Server
|
|
Requires=network.target
|
|
Wants=postgresql.service
|
|
After=postgresql.service
|
|
PartOf=bigbluebutton.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=bigbluebutton
|
|
Group=bigbluebutton
|
|
WorkingDirectory=/usr/local/bin
|
|
EnvironmentFile=/etc/default/bbb-graphql-server
|
|
# Optional file (the service should not fail if the file does not exist)
|
|
EnvironmentFile=-/etc/bigbluebutton/bbb-graphql-server.env
|
|
# Load Hasura password
|
|
EnvironmentFile=/etc/default/bbb-graphql-server-admin-pass
|
|
ExecStart=/usr/local/bin/hasura-graphql-engine serve
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=60
|
|
SuccessExitStatus=143
|
|
TimeoutStopSec=5
|
|
PermissionsStartOnly=true
|
|
LimitNOFILE=4096
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target bigbluebutton.target
|