summaryrefslogtreecommitdiffstats
path: root/iipsrv.service
blob: b440527347f54a061b47960d95a611ea0edd9ff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# It's not recommended to modify this file in-place, because it will be
# overwritten during package upgrades.  If you want to customize, the
# best way is to create a file "/etc/systemd/system/iipsrv.service",
# containing
#	.include /lib/systemd/system/iipsrv.service
#	...make your changes here...
# For more info about custom unit files, see
# http://fedoraproject.org/wiki/Systemd#How_do_I_customize_a_unit_file.2F_add_a_custom_unit_file.3F

# For example, if you want to change default iipsrv port to 9000,
# create a file named "/etc/systemd/system/iipsrv.service" containing:
#	.include /lib/systemd/system/iipsrv.service
#	[Service]
#	Environment=PORT=9000


[Unit]
Description=IIPImage Server
After=network.target

[Service]
Environment=IP=127.0.0.1
Environment=PORT=9002
User=iipsrv
ExecStart=/usr/libexec/iipsrv/iipsrv.fcgi --bind ${IP}:${PORT}

[Install]
WantedBy=multi-user.target