doc: service instructions (some)

Massimo Melina committed Jan 7, 2023 at 11:40 UTC 04f4aa1950d998099d67fb2bb883c8ec52976566
1 file changed +12 -1
README.md
+12 -1
@@ -64,10 +64,21 @@ If your system is not Windows/Linux/Mac, you can try this alternative version:
64 1. execute: `sudo npm -g i hfs`
65 2. launch: `hfs`
66
67 -Configuration and other files will be stored in `USER_HOME_FOLDER/.vfs`
67 +Configuration and other files will be stored in `%HOME%/.vfs`
68
69 With this installation method, you can update with `sudo npm -g update hfs` .
70
71 +### Service
72 +
73 +If you want to run HFS as a service
74 +- if you installed with `npm` on Windows
75 + - service installation
76 + - run `npx qckwinsvc2 install name="HFS" description="HFS" path="%APPDATA%\npm\node_modules\hfs\src\index.js" args="--cwd %HOMEPATH%\.hfs" now`
77 + - service update
78 + - run `npx qckwinsvc2 uninstall name="HFS"`
79 + - run `npm -g update hfs`
80 + - run the service installation again
81 +
82 ## Plug-ins
83
84 To install a plugin you just copy its folder inside `plugins` folder.