-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/13/2014 03:20 PM, Duncan wrote:
> Duncan posted on Thu, 13 Mar 2014 13:45:14 +0000 as excerpted:
> 
>> 2b) I wasn't satisfied with the default gpm unit file config either, but by 
>> the time I got to
>> that, I knew .includes were deprecated, and was in the process of trying to 
>> figure out what
>> the allusion to *.d/*.conf was all about.
>> 
>> But once I figured that out for random-seed, I was quickly able to add 
>> /etc/systemd/system/gpm.service.d/execstart.conf , with a customized 
>> ExecStart= line. =:^)
> 
> Turned out that didn't work after all.  I thought the modified ExecStart line 
> would replace the
> previous one and thought it was working but I guess I hadn't tried a console 
> mouse yet, as that
> didn't work.  I was getting an error due to the two execstart lines where 
> only one was 
> allowed.
> 
> So I ended up dup-ing the entire gpm.service file from /usr to /etc and 
> editing the execstart
> line as necessary.

The correct way to do this is to create the file with contents like the 
following:

[Service]
ExecStart=
ExecStart=/usr/bin/gpm --my --options

The first ExecStart= line is a special case that tells systemd to unset the 
ExecStart parameter
completely so you can override it (instead of adding additional commands to run 
on startup).

- -- 
Jonathan Callen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCgAGBQJTI/FyAAoJELHSF2kinlg44e8QAJkLXFOr0Dm5KE2fSw01+2JA
bSY56oZXoRV1d3dlzM7bfCMDRFTPW4MDWv1+qb6AdH/7+tcb8H/pk2pEgbJtjBw3
4oK9uIJOcwYXPlOZU8bVcwQ70cXItlET7waok0h1u0o7WDDabVJi+HFKWMhpHEH1
JYM9HnTMx8qujfBxvbOHuOenBRZXpejqrVqo82UPmf2Ot8I+YS5+ACb7Qm3znqFu
02fbkb9nfbonqL3YDliqlv3MavCuHBQUCKGFtYtWoEjr0V+GGv+pqHgPzefWcT0F
EBMeCOA506bJHgHs+zam010BXlXt+9okr22S5Scvcv/vUIFu7X1AhCcgEfMkTY0o
VdFFq0uPncyH51Xnc2GD9+NzYY1ddJu6xA+ysLzJz2JMe0EXRJf67dl2Zp3i/Y48
FegAevX34VzilkkBeC4ArP1yPoOXQccy/+lyQT3Q1e5Xwp/65jX0/R8RxIycTIZz
vYEc1o84X56ZfvnfzPAr5m0dF9Rg6CUEx0RfDS9mI2VsnjsWOS6otvmfgfGqvBsq
aFnrakCh6ZEcvtd1j76yHy3U1rbhbC0kjuaEkjICvCWmNzeQJabqRN1w9Kam5dvF
Dureh8SSP3JtxpY7f945yBlmNqewYCjHrjg0BSTlaTXMMLIfrBf11QuEp7vS4s1l
7mNWKZP2+HqooMu7WCsJ
=ZfwZ
-----END PGP SIGNATURE-----

Reply via email to