Last active
September 6, 2022 04:11
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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