How to create service file ? reddit / selfhosted ---------------------------------------------------------------------- mailliwal · 2023-12-14 03:46 Hi, I am following [Installing Vaultwarden Without Docker – Bloovis](https://www.bloovis.com/posts/2023-10-06-vaultwarden-without- docker/) to install Vaultwarden. Since Alpinx is used, may I know how to create service ? There is no "/etc/systemd/system/vaultwarden.service" ​ Thanks `[Unit]` `Description=Bitwarden Server (Rust Edition)` `Documentation=https://github.com/dani-garcia/vaultwarden` [`After=network.target`](https://After=network.target) ​ `[Service]` `User=vaultwarden` `Group=vaultwarden` `EnvironmentFile=/var/lib/vaultwarden/.env` `ExecStart=/opt/vaultwarden/vaultwarden` `LimitNOFILE=1048576` `LimitNPROC=64` `PrivateTmp=true` `PrivateDevices=true` `ProtectHome=true` `ProtectSystem=strict` `WorkingDirectory=/var/lib/vaultwarden` `ReadWriteDirectories=/var/lib/vaultwarden` `AmbientCapabilities=CAP_NET_BIND_SERVICE` ​ `[Install]` [`WantedBy=multi-user.target`](https://WantedBy=multi-user.target) ---------------------------------------------------------------------- thekrautboy · 2023-12-14 04:18 Try /r/LinuxQuestions /r/Linux4Noobs ---------------------------------------------------------------------- mailliwal · 2023-12-14 04:32 >How to create service file ? Thanks, Let's try to ask there ---------------------------------------------------------------------- neumaticc · 2023-12-14 05:41 btw you *should* use docker It'll make your life much easier ---------------------------------------------------------------------- mailliwal · 2023-12-14 05:46 Thanks for advice. Just want to dedicate a LXC container for password manager only. ---------------------------------------------------------------------- arcadianarcadian · 2023-12-14 10:26 You have the create a service file. /etc/systemd/system/vaultwarden.service after editing the file, use systemctl commands. $ systemctl daemon-reload # to systemctl read new file that you created. $ systemctl enable vaultwarden # enable starting vaultwarden at boot time. $ systemctl start vaultwarden # start vaultwarden service. ---------------------------------------------------------------------- mailliwal · 2023-12-14 13:09 But “Alpine” no systemd. Therefore I don’t know how to create ---------------------------------------------------------------------- arcadianarcadian · 2023-12-14 13:15 You have to write your own boot (init) script. https://wiki.alpinelinux.org/wiki/Writing\_Init\_Scripts ---------------------------------------------------------------------- domanpanda · 2023-12-14 14:13 No offence but you seem to be too unexperienced to tinker arround with something which will keep your passwords. Either just replace Alpine with Ubuntu Server/Debian and follow the steps as they are or switch to Bitwarden. ---------------------------------------------------------------------- mailliwal · 2023-12-14 16:55 Thanks for advice. Could you share your experience to protect your password? ---------------------------------------------------------------------- domanpanda · 2023-12-14 19:37 Ive used KeepassXC with Dropbox sync for 5 or 6 years. Recently i moved to Vaultwarden installed with docker. I access it through ZeroTier VPN, i have it behind proxy with https. ---------------------------------------------------------------------- mailliwal · 2023-12-15 04:49 Thanks for share. Which DB was choose?