Closed johnramsden closed 4 years ago
Drush 8 and earlier had a shell script that took some effort to set up your environment for you; however, Drush 9 and later assume that you have PHP in your PATH (and mysql, and any other binaries you need), and your php.ini is correct and so on.
Make sure that your PATH and php.ini are correct in the context that you're trying to use Drush in. Also, Drush 9 is getting minimal / no support any more, so you should also update to Drush 10 while you are working on this.
I'm just getting a silent failure though. Is there any way to see what it would be having trouble finding? My binaries are all in the default PATH
.
Have you tried running with --debug?
@greg-1-anderson Yes, no output.
Can you run a trivial PHP program using the same technique?
Also, I noticed you set the DRUSH_PHP
environment variable, which is only used in Drush 8 and earlier.
Describe the bug
Identical commands run via a systemd service, and on the command line, fail when run under systemd.
This does not occur with older versions of
drush
.I'm not sure if it is for all drush commands or just specific ones.
To Reproduce
Create a simple systemd service, for example one to run a backup:
Expected behavior
The back-up should be produced.
Actual behavior
No backup was produced:
The Identical command run on the command line or from
cron
works.Workaround
Run via
cron
System Configuration
Additional information
I've also noticed failures with
civicrm:api
, when running it the same way. It just fails.