Skip to content

Commit

Permalink
Merge pull request #1 from neolip/master
Browse files Browse the repository at this point in the history
Useful for linux
  • Loading branch information
Muraveiko authored Nov 4, 2019
2 parents 5787b50 + 08ff338 commit 73999e6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions dist/rawbt.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 73999e6

Please sign in to comment.