touch /etc/systemd/system/queue-main.service
chmod 664 /etc/systemd/system/queue-main.service
nano /etc/systemd/system/queue-main.service
[Unit]
Description=queue-service
[Service]
Type=simple
User=lemp
WorkingDirectory=/var/www/lemp/www
ExecStart=/usr/bin/php artisan queue:work
Restart=always
StandardOutput=append:/var/www/lemp/logs/queaue.log
StandardError=append:/var/www/lemp/logs/queue.log
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start/restart/stop queue-main.service