diff --git a/README.md b/README.md index a52c15c..a2a30a2 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,21 @@ The utility is distributed as a Phar package. - Copy files from dist folder - Rename one from examples config - Edit connect params + +#### For Windows - Run server (rawbt.bat - The application starts in a minimized window) +#### For Linux +- php rawbt.phar + +#### For Linux (run as daemon) +- copy rawbt.service to /etc/systemd/system/rawbt.service +- edit User, Group (don't run it as root), WorkingDirectory and ExecStart +- sudo systemctl daemon-reload +- sudo systemctl enable rawbt.service +- sudo systemctl start rawbt.service + + ![screenshot](https://cdn.jsdelivr.net/gh/402d/rawbt_ws_server@dfe92065d7cec2f2555f350f40f7c396d86da7ca/doc/screenshot.png) - Add bat file to startup diff --git a/dist/rawbt.service b/dist/rawbt.service new file mode 100644 index 0000000..a15e762 --- /dev/null +++ b/dist/rawbt.service @@ -0,0 +1,12 @@ +[Unit] +Description=RawBT Print Server + +[Service] +User=CHANGE_ME +Group=CHANGE_ME +Restart=always +WorkingDirectory=/opt/rawbt +ExecStart=/usr/bin/php /opt/rawbt/rawbt.phar + +[Install] +WantedBy=multi-user.target \ No newline at end of file