moved service installation instructions to wiki
Massimo Melina committed
Aug 24, 2024 at 17:54 UTC
303c9da659a8e08dfa171b146b608e42705c6c27
1 file changed
+2
-35
README.md
+2
-35
@@ -53,6 +53,8 @@ This is a full rewrite of [the Delphi version](https://github.com/rejetto/hfs2).
53
54
## Installation
55
56
+For service installation instructions, [see our wiki](https://github.com/rejetto/hfs/wiki/Service-installation).
57
+
58
NB: minimum Windows version required is 8.1 , Windows Server 2012 R2 (because of Node.js 18)
59
60
1. go to https://github.com/rejetto/hfs/releases
@@ -86,41 +88,6 @@ If this procedure fails, it may be that you are missing one of [these requiremen
88
89
Configuration and other files will be stored in `%HOME%/.vfs`
90
89
-### Service
90
-
91
-If you want to run HFS at boot (as a service), we suggest the following methods
92
-
93
-#### On Linux
94
-1. [install node.js](https://nodejs.org)
95
-2. create a file `/etc/systemd/system/hfs.service` with this content
96
- ```
97
- [Unit]
98
- Description=HFS
99
- After=network.target
100
-
101
- [Service]
102
- Type=simple
103
- Restart=always
104
- ExecStart=/usr/bin/npx -y hfs@latest
105
-
106
- [Install]
107
- WantedBy=multi-user.target
108
- ```
109
-3. run `sudo systemctl daemon-reload && sudo systemctl enable hfs && sudo systemctl start hfs && sudo systemctl status hfs`
110
-
111
-NB: update will be attempted at each restart
112
-
113
-#### On Windows
114
-
115
-1. [install node.js](https://nodejs.org)
116
-2. run `npm -g i hfs`
117
-3. run `npx qckwinsvc2 install name="HFS" description="HFS" path="%APPDATA%\npm\node_modules\hfs\src\index.js" args="--cwd %HOMEPATH%\.hfs" now`
118
-
119
-To update
120
-- run `npx qckwinsvc2 uninstall name="HFS"`
121
-- run `npm -g update hfs`
122
-- run `npx qckwinsvc2 install name="HFS" description="HFS" path="%APPDATA%\npm\node_modules\hfs\src\index.js" args="--cwd %HOMEPATH%\.hfs" now`
123
-
91
## Console commands
92
93
If you have full access to HFS' console, you can enter commands. Start with `help` to have a full list.