Skip to content

Instantly share code, notes, and snippets.

@BagriyDmitriy
Last active September 6, 2022 04:11
Show Gist options
  • Save BagriyDmitriy/f31014fbf23871749a20fe04dc952edb to your computer and use it in GitHub Desktop.
Save BagriyDmitriy/f31014fbf23871749a20fe04dc952edb to your computer and use it in GitHub Desktop.
/etc/systemd/system/laravel-echo-server.service - systemd service config for centos 7 (laravel-echo-server)
# Laravel laravel-echo-server worker using systemd
# ----------------------------------
#
# /etc/systemd/system/laravel-echo-server.service
#
# run this command to enable service:
# systemctl daemon-reload
# systemctl enable laravel-echo-server.service
# systemctl start laravel-echo-server.service
[Unit]
Description=laravel-echo-server
[Service]
User=nginx
Group=nginx
Restart=always
WorkingDirectory=/var/www/servername/html/base
ExecStart=/usr/bin/laravel-echo-server start
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment