diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2019-07-09 10:14:07 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2019-07-09 10:24:49 +0900 |
commit | c00e6df46db3b56b0e8a47eba6895e9d7f5dff5c (patch) | |
tree | f0a3c7a0b185fb0407725db5a5bbbbcdb047a873 | |
parent | e929975b130a4181ca4669727088844255e884a5 (diff) | |
download | csr-framework-c00e6df46db3b56b0e8a47eba6895e9d7f5dff5c.tar.gz csr-framework-c00e6df46db3b56b0e8a47eba6895e9d7f5dff5c.tar.bz2 csr-framework-c00e6df46db3b56b0e8a47eba6895e9d7f5dff5c.zip |
Remove unnecessary code from csr-popup.[socket|service]
1. The csr-popup.service does not need to be running at boot time, so it removes the "Wants=csr-popup.service" from the csr-popup.socket.
2. You do not need "Sockets=" and "Service=" for sockets and services with the same prefix.
3. "Type=simple" is the systemd defaults, so we don't need it.
Change-Id: I4a282d27dff9a8591bf68b4ca9e9b1a41592a87d
-rw-r--r-- | systemd/csr-popup.service.in | 2 | ||||
-rw-r--r-- | systemd/csr-popup.socket.in | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/systemd/csr-popup.service.in b/systemd/csr-popup.service.in index d137834..82bfce4 100644 --- a/systemd/csr-popup.service.in +++ b/systemd/csr-popup.service.in @@ -2,7 +2,5 @@ Description=CSR popup service for user session [Service] -Type=simple EnvironmentFile=@POPUP_SERVICE_ENV_FILE_PATH@ ExecStart=@BIN_DIR@/@SERVICE_NAME@-popup -Sockets=@SERVICE_NAME@-popup.socket diff --git a/systemd/csr-popup.socket.in b/systemd/csr-popup.socket.in index a360f66..789b96a 100644 --- a/systemd/csr-popup.socket.in +++ b/systemd/csr-popup.socket.in @@ -1,11 +1,8 @@ [Unit] Description= Csr popup socket -Wants=@SERVICE_NAME@-popup.service -Before=@SERVICE_NAME@-popup.service [Socket] ListenStream=/tmp/.@SERVICE_NAME@-popup.socket -Service=@SERVICE_NAME@-popup.service SocketMode=0777 [Install] |