You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Functions in the systemd_service execution module have hard-coded command names which rely on the PATH environment variable to be properly set in order to run correctly.
Steps to Reproduce the behavior
On a Debian 10 system, the PATH variable was modified to remove locations where the systemctl and runlevel commands would be found:
# /root/.bashrc
export PATH=""
Then, any calls to will fail.
Expected behavior
It would be nice if the functions made an effort to locate the full path to the binaries.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005+0na.c57a277Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.15.0pygit2: Not InstalledPython: 3.7.3 (default, Jan 22 2021, 20:04:44)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 23.2.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-21-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
Functions in the
systemd_service
execution module have hard-coded command names which rely on thePATH
environment variable to be properly set in order to run correctly.Steps to Reproduce the behavior
On a Debian 10 system, the
PATH
variable was modified to remove locations where thesystemctl
andrunlevel
commands would be found:Then, any calls to will fail.
Expected behavior
It would be nice if the functions made an effort to locate the full path to the binaries.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: