mirror of
https://github.com/v2rayA/v2rayA.git
synced 2026-11-20 23:02:25 +03:00
install/nfpm/v2raya.yaml describes every Linux package of a release: the two binaries, the rule data the packaging job downloads, the desktop entry, nine icon sizes rendered from gui/src/assets/img/v2raya-icon.svg, and, per packager, either the systemd units or the OpenRC init script together with its conf.d file. The rule data is shipped as regular files rather than as symlinks into a v2ray-rules-dat package, which no distribution provides. The maintainer scripts reload systemd where it exists and do nothing on Alpine.
9 lines
360 B
Bash
9 lines
360 B
Bash
#!/bin/sh
|
|
# Only the systemd distributions have a manager to notify. Restarting a
|
|
# running v2raya on upgrade keeps the core in step with the new binary; a
|
|
# package that is merely installed has nothing running yet.
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl daemon-reload || true
|
|
systemctl try-restart v2raya.service >/dev/null 2>&1 || true
|
|
fi
|