Include tids service unit and schema sql.
authorSam Hartman <hartmans@debian.org>
Tue, 20 May 2014 00:49:39 +0000 (20:49 -0400)
committerSam Hartman <hartmans@debian.org>
Tue, 20 May 2014 00:49:39 +0000 (20:49 -0400)
Makefile.am
schema.sql [new file with mode: 0644]
tids.service [new file with mode: 0644]

index 717b265..0beaa01 100644 (file)
@@ -49,5 +49,10 @@ noinst_HEADERS = include/gsscon.h include/tr_config.h \
        include/tr_comm.h include/tr_apc.h \
        include/tr_filter.h
 
+pkgdata_DATA=schema.sql
+systemddir=/lib/systemd/system
+
+systemd_DATA=tids.service
+
 
 EXTRA_DIST = trust_router.spec
diff --git a/schema.sql b/schema.sql
new file mode 100644 (file)
index 0000000..443328c
--- /dev/null
@@ -0,0 +1,4 @@
+create table if not exists psk_keys (keyid text primary key, key blob);
+.quit
+
+
diff --git a/tids.service b/tids.service
new file mode 100644 (file)
index 0000000..e69107e
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description = Trust Identity Protocol Server
+Before=freeradius.service
+
+[Service]
+EnvironmentFile=/etc/default/trust_router
+ExecPre=/usr/bin/sqlite3 -init /usr/share/trust_router/schema.sql /var/lib/trustrouter/keys
+ExecStart=/usr/bin/tids  ${ipaddr} ${gssname} ${hostname} /var/lib/trustrouter/keys
+Restart=always
+StandardOutput=syslog
+StandardError=inherit
+User=trustrouter