Update name and unit file.

This commit is contained in:
Alexandr Bogomyakov
2020-04-25 22:56:22 +03:00
parent 3446e7f3d5
commit 9d8c079a36
4 changed files with 11 additions and 10 deletions

View File

@ -34,6 +34,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./target/release/musfuse
asset_name: mus_fuse
asset_path: ./target/release/mus-fuse
asset_name: mus-fuse
asset_content_type: application/x-pie-executable

View File

@ -1,5 +1,5 @@
[package]
name = "musfuse"
name = "mus-fuse"
version = "0.6.0"
authors = ["AB <ultradesu@hexor.ru>"]
edition = "2018"

View File

@ -13,7 +13,7 @@ MusFuse is a FUSE filesystem over HTTP for music. It is using [playongo](https:/
- Leverages Rust correctness.
## How to use
Here is a [binary release](https://github.com/house-of-vanity/mus_fuse/releases/latest) or compile it yourself. Anyway mind about dependencies listed below. Also there is a systemd unit file for managing service.
Here is a [binary release](https://github.com/house-of-vanity/mus_fuse/releases/latest) or compile it yourself. Anyway mind about dependencies listed below. Also there is a systemd unit file for managing service. Place it into `~/.config/systemd/user/mus-fuse.service`
```sh
# Compile
@ -23,7 +23,7 @@ $ cargo build --release
# to baypass Basic Auth set
# $HTTP_USER and $HTTP_PASS
# environment variables before run.
$ ./target/release/musfuse <mountpoint> <server>
$ ./target/release/mus-fuse -m <mountpoint> -s <server>
# To get metrics
$ cat <mountpoint>/METRICS.TXT

View File

@ -2,12 +2,13 @@
Description=Mount mus-fuse
[Service]
User=ab
Type=simple
Environment=HTTP_USER=user
Environment=HTTP_PASS=pass
ExecStart=/usr/bin/mus-fuse /MUS https://mus.hexor.ru
RestartSec=5
Restart=always
Environment=HTTP_USER=<USER>
Environment=HTTP_PASS=<PASS>
ExecStart=/usr/local/bin/mus-fuse --mountpoint <PATH> --server <ADDRESS>
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
WantedBy=default.target