From 9d8c079a360b11dee031410e7054a80966165ea6 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Sat, 25 Apr 2020 22:56:22 +0300 Subject: [PATCH] Update name and unit file. --- .github/workflows/build.yml | 4 ++-- Cargo.toml | 2 +- README.md | 4 ++-- mus-fuse.service | 11 ++++++----- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4956637..45f7db8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 7bfdb87..0d6308f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "musfuse" +name = "mus-fuse" version = "0.6.0" authors = ["AB "] edition = "2018" diff --git a/README.md b/README.md index a6ee5cb..619a5a5 100644 --- a/README.md +++ b/README.md @@ -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 +$ ./target/release/mus-fuse -m -s # To get metrics $ cat /METRICS.TXT diff --git a/mus-fuse.service b/mus-fuse.service index 1d11ade..7f539c3 100644 --- a/mus-fuse.service +++ b/mus-fuse.service @@ -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= +Environment=HTTP_PASS= +ExecStart=/usr/local/bin/mus-fuse --mountpoint --server
KillSignal=SIGINT [Install] -WantedBy=multi-user.target +WantedBy=default.target