systemd-254.10-alt2.x86_64 (p10 systemd-249.17-alt2.x86_64) victoriametrics-1.101.0-alt1.x86_64 (p10 victoriametrics-1.97.3-alt1.x86_64) текущий unit-файл включает: [Service] Type=simple User=_victoriametrics Group=_victoriametrics Environment=DATAPATH=/var/lib/victoria-metrics/data EnvironmentFile=-/etc/sysconfig/victoriametrics ExecStart=/usr/bin/victoria-metrics -storageDataPath=$DATAPATH $ARGS при старте сервиса получаем: systemctl status victoriametrics.service ● victoriametrics.service - Fast, cost-effective and scalable time series database Loaded: loaded (/lib/systemd/system/victoriametrics.service; disabled; preset: disabled) Active: active (running) since Mon 2024-05-20 15:17:33 MSK; 1s ago Docs: https://docs.victoriametrics.com Main PID: 1931992 (victoria-metric) Tasks: 17 (limit: 115670) Memory: 33.6M CPU: 112ms CGroup: /system.slice/victoriametrics.service └─1931992 /usr/bin/victoria-metrics "-storageDataPath=\$DATAPATH" что приводит к: # ps ax | grep vict 86997 ? Ssl 0:00 /usr/bin/victoria-metrics -storageDataPath=$DATAPATH -promscrape.config=/etc/prometheus/prometheus.yml и соответственно: ll /var/lib/victoria-metrics/data/ total 12 drwxr-xr-x 7 _victoriametrics _victoriametrics 4096 May 20 15:17 '$DATAPATH'/ drwxr-xr-x 3 _victoriametrics _victoriametrics 4096 May 20 15:17 ./ drwxr-xr-x 3 _victoriametrics _victoriametrics 4096 May 20 15:16 ../ как вариант помогает, вроде # /etc/systemd/system/victoriametrics.service.d/override.conf [Service] ExecStart= ExecStart=/usr/bin/victoria-metrics -storageDataPath=%{DATAPATH} $ARGS указал так же установленные пакеты в p10, "ALT Virtualization Server 10.2 (Actinoform)", где и наткнулся при обновлении с victoriametrics-1.62.0-alt1... как подать на оба дистрибутива?
а, такой вариант рабочий, да: # /etc/systemd/system/victoriametrics.service.d/override.conf [Service] ExecStart= ExecStart=/usr/bin/victoria-metrics -storageDataPath=${DATAPATH} ${ARGS} status cut: CGroup: /system.slice/victoriametrics.service └─1945179 /usr/bin/victoria-metrics -storageDataPath=/var/lib/victoria-metrics/data
victoriametrics-1.101.0-alt2 -> sisyphus: Tue May 28 2024 Alexey Shabalin <shaba@altlinux> 1.101.0-alt2 - Fixed use Environment in systemd unit (ALT#50398).